﻿#ifndef ERR_NUM_H
#define ERR_NUM_H
/************************************************************************/
/*                     共享内存基类错误字                               */
/************************************************************************/

#define BSC_SM_ERR_NUM_OPER_OK                      1L                                   /*操作或其它过程成功*/
#define BSC_SM_ERR_NUM_OK                          -0L                                   /*操作或其它过程成功*/


#define ACE_M_M_ERR_NUM                             -1L                                  /*ACE内核错误*/
#define ACE_M_M_RIGHT_ERR                           -0L+ACE_M_M_ERR_NUM                  /*ACE内核权限错误*/



/************************************************************************/
/*                     NSA3000T实时库错误字                             */
/************************************************************************/
#define NAS3000T_REALDB_SM_ERR_NUM                 -0x100L                               /*NSA3000T错误字域偏移*/
#define DB_SQL_ERRNUM_NO_RECORD                    -0L+NAS3000T_REALDB_SM_ERR_NUM        /*无纪录或当前条件记录*/
#define DB_SQL_ERRNUM_NO_TABLE_INFO                -1L+NAS3000T_REALDB_SM_ERR_NUM        /*没有表名表信息*/
#define DB_SQL_ERRNUM_NO_COLUMN_INFO               -2L+NAS3000T_REALDB_SM_ERR_NUM        /*没有域名表信息*/
#define DB_SQL_ERRNUM_SQLSTR_ERROR                 -3L+NAS3000T_REALDB_SM_ERR_NUM        /*SQL输入字符有误*/
#define DB_SQL_ERRNUM_TABLENAME_ERROR              -4L+NAS3000T_REALDB_SM_ERR_NUM        /*SQL表名字符有误，无当前表*/
#define DB_SQL_ERRNUM_NO_MSG                       -5L+NAS3000T_REALDB_SM_ERR_NUM        /*读取表信息错误*/
#define DB_SQL_ERRNUM_NO_BUF                       -6L+NAS3000T_REALDB_SM_ERR_NUM        /*实时库无当前表缓冲区*/
#define DB_SQL_ERRNUM_FILT                         -7L+NAS3000T_REALDB_SM_ERR_NUM        /*SQL筛选条件错误*/
#define DB_SQL_ERRNUM_NOFIELD                      -8L+NAS3000T_REALDB_SM_ERR_NUM        /*域名表无当前字段*/
#define DB_SQL_ERRNUM_CURRTABLETOOLAGER            -9L+NAS3000T_REALDB_SM_ERR_NUM        /*当前表内存溢出输入表过长导致共享内存溢出*/
#define DB_SQL_ERRNUM_ERRORSYSTYPE                -10L+NAS3000T_REALDB_SM_ERR_NUM        /*应用号错误*/
#define DB_SQL_ERRNUM_ERRORTABLEMSG1              -11L+NAS3000T_REALDB_SM_ERR_NUM        /*输入表信息条件错误*/
#define DB_SQL_ERRNUM_ERRORTABLELEN               -12L+NAS3000T_REALDB_SM_ERR_NUM        /*输入表长度错误*/
#define DB_SQL_ERRNUM_CLEARCURTABLFAIL            -13L+NAS3000T_REALDB_SM_ERR_NUM        /*清空表内存失败*/
#define DB_SQL_ERRNUM_GETTABLEFAIL                -14L+NAS3000T_REALDB_SM_ERR_NUM        /*获取表信息失败*/
#define DB_SQL_ERRNUM_ERRORTABLEMSG2              -15L+NAS3000T_REALDB_SM_ERR_NUM        /*输入表信息和历史信息不符*/
#define DB_SQL_ERRNUM_ERRORORDERBY                -16L+NAS3000T_REALDB_SM_ERR_NUM        /*ORDER By 语句有错误*/
#define DB_SQL_ERRNUM_ERRORMAXRECORDCOUNT         -17L+NAS3000T_REALDB_SM_ERR_NUM        /*最大行数有错误*/
#define DB_SQL_ERRNUM_ERRORTABLENAME              -18L+NAS3000T_REALDB_SM_ERR_NUM        /*表名错误*/
#define DB_SQL_ERRNUM_IN_PARA_ERROR               -19L+NAS3000T_REALDB_SM_ERR_NUM        /*输入参数错误*/
#define DB_SQL_ERRNUM_READNODETYPEERROR           -20L+NAS3000T_REALDB_SM_ERR_NUM        /*读取节点表节点类型错误*/
#define DB_SQL_ERRNUM_INSERT_INTO_VAL_ERR         -21L+NAS3000T_REALDB_SM_ERR_NUM        /*insert into 语句value错误*/
#define DB_SQL_ERRNUM_INSERT_INTO_KEY_VAL_ERR     -22L+NAS3000T_REALDB_SM_ERR_NUM        /*insert into 语句key_value错误*/
#define DB_SQL_ERRNUM_DELETE_NO_RECORD            -23L+NAS3000T_REALDB_SM_ERR_NUM        /*delete 语句无当前条件记录*/
#define DB_SQL_ERRNUM_UPDATE_ERR_UPDATE_KEY_VAL   -24L+NAS3000T_REALDB_SM_ERR_NUM        /*无法无条件改变主键值*/
#define DB_SQL_ERRNUM_UPDATE_ERR_NO_WHERE_RECORD  -25L+NAS3000T_REALDB_SM_ERR_NUM        /*没有条件所需记录*/
#define DB_SQL_ERRNUM_UPDATE_ERR_NO_CON_VAL       -26L+NAS3000T_REALDB_SM_ERR_NUM        /*没有update条件值*/
#define DB_SQL_ERRNUM_UPDATE_ERR_NO_REC_VAL       -27L+NAS3000T_REALDB_SM_ERR_NUM        /*没有update记录值*/
#define DB_SQL_ERRNUM_UPDATE_ERR_UPDATE_STR_VAL   -28L+NAS3000T_REALDB_SM_ERR_NUM        /*update字符串值错误*/
#define DB_SQL_ERRNUM_UPDATE_ERR_SELECT_SQL       -29L+NAS3000T_REALDB_SM_ERR_NUM        /*update中select SQL错误*/
#define DB_SQL_ERRNUM_UPDATE_ERR_UPDATE_VAL_TYPE  -30L+NAS3000T_REALDB_SM_ERR_NUM        /*update中字符类型错误*/
#define DB_SQL_ERRNUM_ERR_READ_DB_SERVER_TABLE    -31L+NAS3000T_REALDB_SM_ERR_NUM        /*读取db_server表错误*/
#define DB_SQL_ERRNUM_ERR_READ_NT_SERVER_TABLE    -32L+NAS3000T_REALDB_SM_ERR_NUM        /*读取nt_server表错误*/
#define DB_SQL_ERRNUM_ERR_READ_WS_SERVER_TABLE    -33L+NAS3000T_REALDB_SM_ERR_NUM        /*读取ws_server表错误*/
#define DB_SQL_ERRNUM_ERR_READ_FN_SERVER_TABLE    -34L+NAS3000T_REALDB_SM_ERR_NUM        /*读取fn_server表错误*/
#define DB_SQL_ERRNUM_ERR_READ_NODE_D_T_ID        -35L+NAS3000T_REALDB_SM_ERR_NUM        /*读取node表数据逻辑错误*/
#define DB_SQL_ERRNUM_ERR_READ_FN_SERVER_D_T_ID   -36L+NAS3000T_REALDB_SM_ERR_NUM        /*读取fn_server表数据去向错误*/
#define DB_SQL_ERRNUM_ERR_READ_NT_SERVER_D_T_ID   -37L+NAS3000T_REALDB_SM_ERR_NUM        /*读取net_server表数据逻辑错误*/
#define DB_SQL_ERRNUM_ERR_READ_DB_SERVER_D_T_ID   -38L+NAS3000T_REALDB_SM_ERR_NUM        /*读取net_server表数据逻辑错误*/
#define DB_SQL_ERRNUM_ERR_READ_WS_SERVER_D_T_ID   -39L+NAS3000T_REALDB_SM_ERR_NUM        /*读取WS_server表数据逻辑错误*/
#define DB_SQL_ERRNUM_ERR_READ_TABLE_D_T_ID       -40L+NAS3000T_REALDB_SM_ERR_NUM        /*读取表数据逻辑错误*/
#define DB_SQL_ERRNUM_ERR_READ_TABLE_LEN_ERR      -41L+NAS3000T_REALDB_SM_ERR_NUM        /*读取表长度错误*/
#define DB_SQL_ERRNUM_ERR_UPDATE_TABLE_OVER       -42L+NAS3000T_REALDB_SM_ERR_NUM        /*更新表结束*/
#define DB_SQL_ERRNUM_ERR_SQL_STR_EMPTY           -43L+NAS3000T_REALDB_SM_ERR_NUM        /*SQL输入字符为空*/
#define DB_SQL_ERRNUM_ERR_RD_TABLE_MSG            -44L+NAS3000T_REALDB_SM_ERR_NUM        /*实时库表信息错误*/
#define DB_SQL_ERRNUM_ERR_RD_TABLE_LEN            -45L+NAS3000T_REALDB_SM_ERR_NUM        /*实时库表信息和实际长度不符*/
#define DB_SQL_ERRNUM_ERR_RD_TABLE_SAME_UPATE_VAL -46L+NAS3000T_REALDB_SM_ERR_NUM        /*当前记录值相同*/
#define DB_SQL_ERRNUM_ERR_RD_VALUE_IS_LOCK        -47L+NAS3000T_REALDB_SM_ERR_NUM        /*当前值被置数或其他锁定*/
#define DB_SQL_ERRNUM_ERR_U_R_UP_REC_MAX_COUNT    -48L+NAS3000T_REALDB_SM_ERR_NUM        /*同步最大行溢出*/
#define DB_SQL_ERRNUM_ERR_U_R_UP_REC_MIX_COUNT    -49L+NAS3000T_REALDB_SM_ERR_NUM        /*同步最大行溢出*/
#define DB_SQL_ERRNUM_ERR_REC_MAX_COUNT           -50L+NAS3000T_REALDB_SM_ERR_NUM        /*最大行溢出*/
#define DB_SQL_ERRNUM_ERR_REC_MIX_COUNT           -51L+NAS3000T_REALDB_SM_ERR_NUM        /*最小行溢出*/
#define DB_SQL_ERRNUM_ERR_CUR_REC_IS_ZERO         -52L+NAS3000T_REALDB_SM_ERR_NUM        /*当前记录值为零*/
#define DB_SQL_ERRNUM_ERR_CUR_TABLE_NO_KEY        -53L+NAS3000T_REALDB_SM_ERR_NUM        /*当前表无主键*/
#define DB_SQL_ERRNUM_ERR_CUR_TABLE_KEY_COLN      -54L+NAS3000T_REALDB_SM_ERR_NUM        /*获取当前表带有主键域失败*/
#define DB_SQL_ERRNUM_ERR_CUR_REC_COLU_IS_EM      -55L+NAS3000T_REALDB_SM_ERR_NUM        /*当前字段或者记录为空或者为零*/
#define DB_SQL_ERRNUM_ERR_CUR_REC_MSG             -56L+NAS3000T_REALDB_SM_ERR_NUM        /*当前字段信息错误*/
#define DB_SQL_ERRNUM_ERR_CUR_NO_DEV              -57L+NAS3000T_REALDB_SM_ERR_NUM        /*当前无设备*/
#define DB_SQL_ERRNUM_ERR_LOCK_MEM_POS            -58L+NAS3000T_REALDB_SM_ERR_NUM        /*内存定位错误*/

/************************************************************************/
/*                     NSA3000T网络消息错误字                           */
/************************************************************************/
#define NAS3000T_NETMSG_SM_ERR_NUM                 -0x200L                               /*NSA3000T错误字域偏移*/
#define NET_MSG_ERRNUM_NO_RECORD                   -0L+NAS3000T_NETMSG_SM_ERR_NUM        /*无纪录*/
#define NET_MSG_ERRNUM_NO_BUFF                     -1L+NAS3000T_NETMSG_SM_ERR_NUM        /*信息表错误*/
#define NET_MSG_ERRNUM_NO_SAFE                     -2L+NAS3000T_NETMSG_SM_ERR_NUM        /*内存不安全*/
#define NET_MSG_ERRNUM_NO_WRPOS                    -3L+NAS3000T_NETMSG_SM_ERR_NUM        /*写指针消失*/
#define NET_MSG_ERRNUM_NO_FREE_NM_ID               -4L+NAS3000T_NETMSG_SM_ERR_NUM        /*取NM_ID失败*/
#define NET_MSG_ERRNUM_NO_READ_NM_ID               -5L+NAS3000T_NETMSG_SM_ERR_NUM        /*读NM_ID失败*/
#define NET_MSG_ERRNUM_NO_SENDBUFF                 -6L+NAS3000T_NETMSG_SM_ERR_NUM        /*输入缓冲异常*/
#define NET_MSG_ERRNUM_NO_NM_ID                    -7L+NAS3000T_NETMSG_SM_ERR_NUM        /*输入NM_ID异常*/
#define NET_MSG_ERRNUM_NO_NM_ID_BUF                -8L+NAS3000T_NETMSG_SM_ERR_NUM        /*NM_ID缓冲有误*/
#define NET_MSG_ERRNUM_TOOLARGE_LEN                -9L+NAS3000T_NETMSG_SM_ERR_NUM        /*信息缓冲过大*/
#define NET_MSG_ERRNUM_WRITEMSG_FAILE             -10L+NAS3000T_NETMSG_SM_ERR_NUM        /*写信息块失败*/
#define NET_MSG_ERRNUM_WRITEBUF_FAILE             -11L+NAS3000T_NETMSG_SM_ERR_NUM        /*写消息内容失败*/
#define NET_MSG_ERRNUM_NO_BUFLEN                  -12L+NAS3000T_NETMSG_SM_ERR_NUM        /*输入长度地址错误*/
#define NET_MSG_ERRNUM_READMSG_FAILE              -13L+NAS3000T_NETMSG_SM_ERR_NUM        /*读取信息失败*/
#define NET_MSG_ERRNUM_READBUF_FAILE              -14L+NAS3000T_NETMSG_SM_ERR_NUM        /*读取内容失败*/
#define NET_MSG_ERRNUM_NETSER_NOLISTEN            -15L+NAS3000T_NETMSG_SM_ERR_NUM        /*当前节点无起动监听权限*/
#define NET_MSG_ERRNUM_IN_PARA_ERROR              -16L+NAS3000T_NETMSG_SM_ERR_NUM        /*输入参数错误*/
#define NET_MSG_ERRNUM_DB_PARA_ERROR              -17L+NAS3000T_NETMSG_SM_ERR_NUM        /*网络配置参数错误，无法获取网络服务器*/
#define NET_MSG_ERRNUM_NO_SYS_PAPA                -18L+NAS3000T_NETMSG_SM_ERR_NUM        /*无法获取系统配置文件*/
#define NET_MSG_ERRNUM_ERR_WRITE_POS              -19L+NAS3000T_NETMSG_SM_ERR_NUM        /*错误指针*/
#define NET_MSG_ERRNUM_ERR_MSG_TYPE               -20L+NAS3000T_NETMSG_SM_ERR_NUM        /*消息类型错误*/
#define NET_MSG_ERRNUM_ERR_SYS_PAPA               -21L+NAS3000T_NETMSG_SM_ERR_NUM        /*配置文件错误*/
#define NET_MSG_ERRNUM_ERR_W_B_M_HEAD             -22L+NAS3000T_NETMSG_SM_ERR_NUM        /*网络广播消息写指针错误*/
#define NET_MSG_ERRNUM_ERR_R_B_M_HEAD             -23L+NAS3000T_NETMSG_SM_ERR_NUM        /*网络广播消息读指针错误*/
#define NET_MSG_ERRNUM_ERR_ORDER_NUM              -24L+NAS3000T_NETMSG_SM_ERR_NUM        /*命令字错误*/
#define NET_MSG_ERRNUM_ERR_RANDOM_NUM             -25L+NAS3000T_NETMSG_SM_ERR_NUM        /*获取随机码错误*/
#define NET_MSG_ERRNUM_ERR_PROID_OR_NODEID        -26L+NAS3000T_NETMSG_SM_ERR_NUM        /*错误进程号或者节点号*/
#define NET_MSG_ERRNUM_ERR_S_E_PAPA               -27L+NAS3000T_NETMSG_SM_ERR_NUM        /*目的节点进程和起始相同*/
#define NET_MSG_ERRNUM_ERR_ZERO_MEM               -28L+NAS3000T_NETMSG_SM_ERR_NUM        /*清空当前网络消息失败*/
#define NET_MSG_ERRNUM_ERR_CS                     -29L+NAS3000T_NETMSG_SM_ERR_NUM        /*网络校验位错误*/
#define NET_MSG_ERRNUM_END_NODE_NO_RIGHT          -30L+NAS3000T_NETMSG_SM_ERR_NUM        /*网络目的节点无启动进程权限*/
#define NET_MSG_ERRNUM_START_NODE_NO_RIGHT        -31L+NAS3000T_NETMSG_SM_ERR_NUM        /*网络起始节点无启动进程权限*/
#define NET_MSG_ERRNUM_ERR_REAL_DB                -32L+NAS3000T_NETMSG_SM_ERR_NUM        /*实时库错误*/
#define NET_MSG_ERRNUM_ERR_END_PRO_ID             -33L+NAS3000T_NETMSG_SM_ERR_NUM        /*目的进程错误*/
#define NET_MSG_ERRNUM_ERR_LOCAL_NODE_ID          -34L+NAS3000T_NETMSG_SM_ERR_NUM        /*本地节点错误*/
#define NET_MSG_ERRNUM_ERR_LOCAL_NODE_LINK        -35L+NAS3000T_NETMSG_SM_ERR_NUM        /*本地节点链路错误*/
#define NET_MSG_ERRNUM_ERR_END_NODE_LINK          -36L+NAS3000T_NETMSG_SM_ERR_NUM        /*目的节点链路错误*/
#define NET_MSG_ERRNUM_ERR_S_NODE_NOT_LOCAL_NODE  -37L+NAS3000T_NETMSG_SM_ERR_NUM        /*起始节点非本地节点*/
#define NET_MSG_ERRNUM_ERR_NET_MSG_BUF            -38L+NAS3000T_NETMSG_SM_ERR_NUM        /*消息缓冲区过大或者其它错误*/
#define NET_MSG_ERRNUM_ERR_NET_BROAD_MSG_INDEX    -39L+NAS3000T_NETMSG_SM_ERR_NUM        /*获取广播消息指针错误*/
#define NET_MSG_ERRNUM_ERR_NET_P_P_MSG_INDEX      -40L+NAS3000T_NETMSG_SM_ERR_NUM        /*获取点到点消息指针错误*/
#define NET_MSG_ERRNUM_ERR_NET_P_P_MSG_NODE_PRO   -41L+NAS3000T_NETMSG_SM_ERR_NUM        /*点到点消息起始节点或目的节点错误*/
#define NET_MSG_ERRNUM_END_NODE_NOT_IN_SYSTEM     -42L+NAS3000T_NETMSG_SM_ERR_NUM        /*目的节点不存在*/
#define NET_MSG_ERRNUM_STR_NODE_NOT_IN_SYSTEM     -43L+NAS3000T_NETMSG_SM_ERR_NUM        /*起始节点不存在*/
#define NET_MSG_ERRNUM_GET_WRITE_NET_MSG_RIGHT    -44L+NAS3000T_NETMSG_SM_ERR_NUM        /*获取写网络库权限失败*/
#define NET_MSG_ERRNUM_WRITE_NET_OWER_MSG_BUF_ERR -45L+NAS3000T_NETMSG_SM_ERR_NUM        /*写网络消息专用缓冲失败*/
#define NET_MSG_ERRNUM_OUT_NET_MSG_POS            -46L+NAS3000T_NETMSG_SM_ERR_NUM        /*指针溢出*/
#define NET_MSG_ERRNUM_HEAD_OR_TAIL_ERR           -47L+NAS3000T_NETMSG_SM_ERR_NUM        /*头或尾字错误*/
#define NET_MSG_ERRNUM_WRITE_RIGHT_MSG_ZERO       -48L+NAS3000T_NETMSG_SM_ERR_NUM        /*权限强制归零*/
#define NET_MSG_ERRNUM_BE_IN_PRO_ERROR            -49L+NAS3000T_NETMSG_SM_ERR_NUM        /*投入系统节点配置有误*/
#define NET_MSG_ERRNUM_B_D_P_P_ERROR              -50L+NAS3000T_NETMSG_SM_ERR_NUM        /*点到点消息和广播消息不能混合*/
#define NET_MSG_ERRNUM_SENDED                     -51L+NAS3000T_NETMSG_SM_ERR_NUM        /*消息已经被传输*/

/************************************************************************/
/*                        NSA3000T进程错误字                            */
/************************************************************************/
#define NAS3000T_PRO_STATE_SM_ERR_NUM             -0x300L
#define PRO_MSG_ERRNUM_NO_PRO_ID                  -0L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*无PRO_ID*/
#define PRO_MSG_ERRNUM_NO_SM                      -1L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*存储区已满*/
#define PRO_MSG_ERRNUM_NO_BUF                     -2L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*存储区不存在*/
#define PRO_MSG_ERRNUM_WRITE_OPER_FAILE           -3L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*写失败*/
#define PRO_MSG_ERRNUM_READ_OPER_FAILE            -4L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*读失败*/
#define PRO_MSG_ERRNUM_IN_PARA_ERROR              -5L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*输入参数错误*/
#define PRO_MSG_ERRNUM_ERR_N_S_STATE              -6L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*状态库网络服务器主从配置错误*/
#define PRO_MSG_ERRNUM_ERR_NET_NO_NUM             -7L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*网络逻辑错误*/
#define PRO_MSG_ERRNUM_ERR_PRO_NUM                -8L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*进程堆栈溢出*/
#define PRO_MSG_ERRNUM_WRITE_SER_PARA_FAILE       -9L+NAS3000T_PRO_STATE_SM_ERR_NUM     /*写服务器参数失败*/
#define PRO_MSG_ERRNUM_GET_NET_SERVER_ID_ERR      -10L+NAS3000T_PRO_STATE_SM_ERR_NUM    /*获取NET_SERVER id号错误*/
#define PRO_MSG_ERRNUM_CUR_NODE_NOT_IN_SYSTEM     -11L+NAS3000T_PRO_STATE_SM_ERR_NUM    /*当前节点不存在*/
#define PRO_MSG_ERRNUM_CUR_NODE_ERROR_NET_MSG     -12L+NAS3000T_PRO_STATE_SM_ERR_NUM    /*当前节点网络消息错误*/
#define PRO_MSG_ERRNUM_CUR_NODE_IN_SYSTEM         -13L+NAS3000T_PRO_STATE_SM_ERR_NUM    /*当前节点已存在*/
#define PRO_MSG_ERRNUM_NO_RECORD                  -14L+NAS3000T_PRO_STATE_SM_ERR_NUM    /*无记录*/
#define PRO_MSG_ERRNUM_NO_RIGHT                   -15L+NAS3000T_PRO_STATE_SM_ERR_NUM    /*无权限*/

/************************************************************************/
/*                   NSA3000T物理数据库访问错误字                       */
/************************************************************************/
#define NAS3000T_DB_ERR_NUM                        -0x400L
#define NAS3000T_DB_IN_PARA_ERROR                  -1L+NAS3000T_DB_ERR_NUM               //输入参数错误
#define NAS3000T_DB_OPEN_DB_A_ERROR                -2L+NAS3000T_DB_ERR_NUM               //打开a库失败
#define NAS3000T_DB_OPEN_DB_B_ERROR                -3L+NAS3000T_DB_ERR_NUM               //打开b库失败
#define NAS3000T_DB_INIT_DB_ERROR                  -4L+NAS3000T_DB_ERR_NUM               //初始化库失败
#define NAS3000T_DB_CLOSE_DB_A_ERROR               -5L+NAS3000T_DB_ERR_NUM               //关闭a库失败
#define NAS3000T_DB_CLOSE_DB_B_ERROR               -6L+NAS3000T_DB_ERR_NUM               //关闭b库失败
#define NAS3000T_DB_ERROR_DB_NUM                   -7L+NAS3000T_DB_ERR_NUM               //库编号错误
#define NAS3000T_DB_CUR_DB_NOT_SAFE                -8L+NAS3000T_DB_ERR_NUM               //当前库不安全
#define NAS3000T_DB_CLOSE_DB_ERROR                 -9L+NAS3000T_DB_ERR_NUM               //关闭库失败
#define NAS3000T_DB_ERROR_DB_VAL                  -10L+NAS3000T_DB_ERR_NUM               //库值错误
#define NAS3000T_DB_ERROR_SQL                     -11L+NAS3000T_DB_ERR_NUM               //SQL语句错误或者为空
#define NAS3000T_DB_LOCAL_NOT_CONNECTED			  -12L+NAS3000T_DB_ERR_NUM               //本地库未连接
#define NAS3000T_DB_ERROR_DB_HANDLE               -13L+NAS3000T_DB_ERR_NUM               /*错误HANDLE值或者数据源失去连接*/
#define NAS3000T_DB_ERROR_DO_SQL                  -14L+NAS3000T_DB_ERR_NUM               /*sql语句推入缓冲失败*/
#define NAS3000T_DB_GET_TABLE_COL_COUNT_ERR       -15L+NAS3000T_DB_ERR_NUM               /*获取字段信息错误*/
#define NAS3000T_DB_MALLOC_COL_MSG_ERR            -16L+NAS3000T_DB_ERR_NUM               /*分配字段信息内存失败*/
#define NAS3000T_DB_ERROR_COL_MSG                 -17L+NAS3000T_DB_ERR_NUM               /*表字段信息错误*/
#define NAS3000T_DB_BAK_DB_NOT_SAFE               -18L+NAS3000T_DB_ERR_NUM               /*备份库不安全*/
#define NAS3000T_DB_BAK_DB_NOT_OPEN               -19L+NAS3000T_DB_ERR_NUM               /*备份库没有打开*/
#define NAS3000T_DB_BAK_DB_MODIFY_FAIL            -20L+NAS3000T_DB_ERR_NUM               /*备份库操作失败*/
#define NAS3000T_DB_WRITE_ERR_TABLE_ERR           -21L+NAS3000T_DB_ERR_NUM               /*写故障表失败*/
#define NAS3000T_DB_WRITE_ERR_TABLE_SUC           -22L+NAS3000T_DB_ERR_NUM               /*写故障表成功*/
#define NAS3000T_DB_ERR_TABLE_SQL_LEN             -23L+NAS3000T_DB_ERR_NUM               /*故障表sql长度过长或为空*/
#define NAS3000T_DB_ERR_SQL_IN_ERR_TABLE          -24L+NAS3000T_DB_ERR_NUM               /*故障表sql语句已经存在*/
#define NAS3000T_DB_OPEN_DB_A_B_ERROR             -25L+NAS3000T_DB_ERR_NUM               /*打开a,b库失败*/
#define NAS3000T_DB_NOT_SUPPORT_SELECT_SQL        -26L+NAS3000T_DB_ERR_NUM               /*不支持Select语句*/
#define NAS3000T_DB_NOT_SUPPORT_MODIFY_SQL        -27L+NAS3000T_DB_ERR_NUM               /*不支持Update\Insert语句*/
#define NAS3000T_DB_MYSQL_SERVER_STOP             -28L+NAS3000T_DB_ERR_NUM               //服务器未启动						jwj 2010-10-28
#define NAS3000T_DB_MYSQL_RESPONSE_LOST           -29L+NAS3000T_DB_ERR_NUM               //当向服务器写入时无法获取错误，但无法获取请求的完整应答
#define NAS3000T_DB_CUR_DB_CONN_ERROR             -30L+NAS3000T_DB_ERR_NUM               //当前库连接错误
#define NAS3000T_DB_CUR_DB_IS_CLOSE               -31L+NAS3000T_DB_ERR_NUM               //当前库已经关闭
#define NAS3000T_DB_SERVER_GONE_ERROR             -32L+NAS3000T_DB_ERR_NUM               //客户端无法向服务器发送请求
#define NAS3000T_DB_NO_DATA                       -33L+NAS3000T_DB_ERR_NUM               /*数据不存在（库、表、字段不存在）*/
#define	NSA3000T_DB_USE_SER_PWD_ERR               -34L+NAS3000T_DB_ERR_NUM               /*数据库服务器/数据库用户名/数据库名/数据库密码错误*/
#define	NSA3000T_DB_CREATE_TABLE_ERR              -35L+NAS3000T_DB_ERR_NUM               /*创建表失败*/
#define	NSA3000T_DB_CREATE_DATABASE_ERR           -36L+NAS3000T_DB_ERR_NUM               /*创建数据库失败*/
#define	NSA3000T_DB_DELETE_DATABASE_ERR           -37L+NAS3000T_DB_ERR_NUM               /*删除数据库失败*/
#define	NSA3000T_DB_UPDATA_ERR					  -38L+NAS3000T_DB_ERR_NUM               /*更改失败原因：关键字重复/表只读*/
#define NSA3000T_DB_NOT_INPUT_SER_OR_DB_NAME	  -39L+NAS3000T_DB_ERR_NUM               /*未输入服务器名或数据库名*/
#define NSA3000T_DB_CUR_TABLE_DATA_NOT_SAFE		  -40L+NAS3000T_DB_ERR_NUM               /*当前表内数据不安全，无法取出*/
#define NSA3000T_DB_OTHER_ERR					  -41L+NAS3000T_DB_ERR_NUM               /*其他错误*/
#define NSA3000T_DB_PING_DB_STATE				  -42L+NAS3000T_DB_ERR_NUM               //正在PING数据库连接状态中
#define NSA3000T_DB_READWRITE_A					  -43L+NAS3000T_DB_ERR_NUM               //A库正在读写数据库操作中
#define NSA3000T_DB_READWRITE_B					  -44L+NAS3000T_DB_ERR_NUM               //B库正在读写数据库操作中





/************************************************************************/
/*                   NSA3000T告警信息访问错误字                         */
/************************************************************************/
#define NAS3000T_WARN_MSG_ERR_NUM                  -0x500L
#define WARN_MSG_ERRNUM_NO_RECORD                  -0L+NAS3000T_WARN_MSG_ERR_NUM        /*无纪录*/
#define WARN_MSG_ERRNUM_NO_BUFF                    -1L+NAS3000T_WARN_MSG_ERR_NUM        /*信息表错误*/
#define WARN_MSG_ERRNUM_IN_PARA_ERROR              -2L+NAS3000T_WARN_MSG_ERR_NUM        /*输入参数错误*/
#define WARN_MSG_ERRNUM_ORDER_NUM_NO_BUF           -3L+NAS3000T_WARN_MSG_ERR_NUM        /*告警命令字溢出*/
#define WARN_MSG_ERRNUM_INDEX_OUT                  -4L+NAS3000T_WARN_MSG_ERR_NUM        /*告警位置溢出(下标为非零值)*/
#define WARN_MSG_ERRNUM_ORDER_NUM_IS_IN            -5L+NAS3000T_WARN_MSG_ERR_NUM        /*告警命令字已经存在*/
#define WARN_MSG_ERRNUM_ORDER_NUM_IS_EMPTY         -6L+NAS3000T_WARN_MSG_ERR_NUM        /*告警命令字数码为零*/
#define WARN_MSG_ERRNUM_ORDER_NUM_NOT_IN           -7L+NAS3000T_WARN_MSG_ERR_NUM        /*告警命令字不存在*/
#define WARN_MSG_ERRNUM_ORDER_NUM_MSG_NOT_IN       -8L+NAS3000T_WARN_MSG_ERR_NUM        /*告警命令字信息不存在*/
#define WARN_MSG_ERRNUM_ORDER_NUM_MSG_ERROR        -9L+NAS3000T_WARN_MSG_ERR_NUM        /*告警命令字信息错误*/
#define WARN_MSG_ERRNUM_MSG_COUNT_IS_ZERO         -10L+NAS3000T_WARN_MSG_ERR_NUM        /*告警信息为零*/
#define WARN_MSG_ERRNUM_SAME_WARN_VAL             -11L+NAS3000T_WARN_MSG_ERR_NUM        /*告警信息参数相同*/
#define WARN_MSG_ERRNUM_EX_COUNT_OUT              -12L+NAS3000T_WARN_MSG_ERR_NUM        /*告警信息前后翻滚溢出*/
#define WARN_MSG_ERRNUM_GET_MAX_COUNT_ERROR       -13L+NAS3000T_WARN_MSG_ERR_NUM        /*告警信息最大值错误*/

/************************************************************************/
/*                   NSA3000T61850模版信息错误字                        */
/************************************************************************/
#define NAS3000T_MODEL_MSG_ERR_NUM                 -0x600L
#define MODEL_MSG_ERRNUM_NO_RECORD                 -0L+NAS3000T_MODEL_MSG_ERR_NUM       /*无纪录*/
#define MODEL_MSG_ERRNUM_IN_PARA_ERROR             -1L+NAS3000T_MODEL_MSG_ERR_NUM       /*输入参数错误*/

/************************************************************************/
/*                        NSA3000T数据服务错误字                            */
/************************************************************************/
#define NAS3000T_DATA_SER_SM_ERR_NUM               -0x700L
#define DATA_SER_SM_IN_PARA_ERROR                  -0L+NAS3000T_DATA_SER_SM_ERR_NUM        /*输入参数错误*/

/************************************************************************/
/*                     NSA3000T网络链路消息错误字                           */
/************************************************************************/
#define NAS3000T_LINK_MSG_SM_ERR_NUM                -0x800L                               /*NSA3000T错误字域偏移*/
#define LINK_MSG_ERRNUM_IN_PARA_ERROR               -0L+NAS3000T_LINK_MSG_SM_ERR_NUM      /*输入参数错误*/
#define LINK_MSG_ERRNUM_LEN_OUT                     -1L+NAS3000T_LINK_MSG_SM_ERR_NUM      /*节点链路长度溢出*/
#define LINK_MSG_ERRNUM_LEN_ZERO                    -2L+NAS3000T_LINK_MSG_SM_ERR_NUM      /*单元长度异常*/
#define LINK_MSG_ERRNUM_NO_NET_MSG                  -3L+NAS3000T_LINK_MSG_SM_ERR_NUM      /*网络消息指针为空*/

/************************************************************************/
/*                     SQLITE物理数据库访问错误字                       */
/************************************************************************/

#define NAS3100_DB_ERR_NUM                         -0x900L
#define NAS3100_DB_IN_PARA_ERROR                  -1L+NAS3100_DB_ERR_NUM               //输入参数错误
#define NAS3100_DB_OPEN_DB_ERROR				  -2L+NAS3100_DB_ERR_NUM               //打开库失败
#define NAS3100_DB_INIT_DB_ERROR                  -3L+NAS3100_DB_ERR_NUM               //初始化库失败
#define NAS3100_DB_CLOSE_DB_ERROR	              -4L+NAS3100_DB_ERR_NUM               //关闭库失败
#define NAS3100_DB_CUR_DB_NOT_SAFE                -5L+NAS3100_DB_ERR_NUM               //当前库不安全
#define NAS3100_DB_ERROR_SQL                      -6L+NAS3100_DB_ERR_NUM               //SQL语句错误或者为空
#define NAS3100_DB_LOCAL_NOT_CONNECTED			  -7L+NAS3100_DB_ERR_NUM               //本地库未连接
#define NAS3100_DB_ERROR_DB_HANDLE                -8L+NAS3100_DB_ERR_NUM               /*错误HANDLE值或者数据源失去连接*/
#define NAS3100_DB_ERROR_DO_SQL                   -9L+NAS3100_DB_ERR_NUM               /*sql语句推入缓冲失败*/
#define NAS3100_DB_GET_TABLE_COL_COUNT_ERR        -10L+NAS3100_DB_ERR_NUM               /*获取字段信息错误*/
#define NAS3100_DB_MALLOC_COL_MSG_ERR             -11L+NAS3100_DB_ERR_NUM               /*分配字段信息内存失败*/
#define NAS3100_DB_ERROR_COL_MSG                  -12L+NAS3100_DB_ERR_NUM               /*表字段信息错误*/
#define NAS3100_DB_ERR_TABLE_SQL_LEN              -13L+NAS3100_DB_ERR_NUM               /*故障表sql长度过长或为空*/
#define NAS3100_DB_NOT_SUPPORT_SELECT_SQL         -14L+NAS3100_DB_ERR_NUM               /*不支持Select语句*/
#define NAS3100_DB_NOT_SUPPORT_MODIFY_SQL         -15L+NAS3100_DB_ERR_NUM               /*不支持Update\Insert语句*/
#define NAS3100_DB_NO_DATA                        -16L+NAS3100_DB_ERR_NUM               /*数据不存在（库、表、字段不存在）*/
#define	NAS3100_DB_USE_SER_PWD_ERR                -17L+NAS3100_DB_ERR_NUM               /*数据库服务器/数据库用户名/数据库名/数据库密码错误*/
#define	NAS3100_DB_CREATE_TABLE_ERR               -18L+NAS3100_DB_ERR_NUM               /*创建表失败*/
#define	NAS3100_DB_CREATE_DATABASE_ERR            -19L+NAS3100_DB_ERR_NUM               /*创建数据库失败*/
#define	NAS3100_DB_DELETE_DATABASE_ERR            -20L+NAS3100_DB_ERR_NUM               /*删除数据库失败*/
#define	NAS3100_DB_UPDATA_ERR					  -21L+NAS3100_DB_ERR_NUM               /*更改失败原因：关键字重复/表只读*/
#define NAS3100_DB_NOT_INPUT_SER_OR_DB_NAME		  -22L+NAS3100_DB_ERR_NUM               /*未输入服务器名或数据库名*/
#define NAS3100_DB_CUR_TABLE_DATA_NOT_SAFE		  -23L+NAS3100_DB_ERR_NUM               /*当前表内数据不安全，无法取出*/
#define NAS3100_DB_OTHER_ERR					  -24L+NAS3100_DB_ERR_NUM               /*其他错误*/
#define NSA3100_DB_NOT_INPUT_SER_OR_DB_NAME		  -25L+NAS3100_DB_ERR_NUM               //未输入服务器或数据库名
#define NAS3100_DB_PREPARE_SELECT_SQL_ERR         -26L+NAS3100_DB_ERR_NUM               //Select语句预执行失败
#define NAS3100_DB_GET_COLUMNCOUNT_FAIL           -27L+NAS3100_DB_ERR_NUM               //Select语句获取字段数失败
#define NAS3100_DB_COLUMNCOUNT_DISACCORD          -28L+NAS3100_DB_ERR_NUM               //Select语句获取字段数与输入信息不一致
#define NAS3100_DB_GET_FIELD_FAIL		          -29L+NAS3100_DB_ERR_NUM               //获取字段信息失败
#define NAS3100_DB_FIELD_DATATYPE_ERR	          -30L+NAS3100_DB_ERR_NUM               //域名表字段数据类型错误(域ID、数据类型、数据长度)
#define NAS3100_DB_MODIFY_OPER_ERR			      -31L+NAS3100_DB_ERR_NUM               //Modify 操作失败
#define NAS3100_DB_SQL_LENGTH_OVER		          -32L+NAS3100_DB_ERR_NUM               //Modify语句长度溢出，超过3072



//////////////////////////////////////////////////////////////////////////
#endif // ERR_NUM_H
